<?php

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;


/**
 * App\Models\Freelance
 *
 * @property-read \App\Models\User|null $user
 * @method static Builder|Freelance newModelQuery()
 * @method static Builder|Freelance newQuery()
 * @method static Builder|Freelance query()
 * @mixin \Eloquent
 * @property int $id
 * @property int $user_id
 * @property string|null $id_no
 * @property string|null $id_card_front
 * @property string|null $id_card_back
 * @property int $is_auth
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static Builder|Freelance whereCreatedAt($value)
 * @method static Builder|Freelance whereId($value)
 * @method static Builder|Freelance whereIdCardBack($value)
 * @method static Builder|Freelance whereIdCardFront($value)
 * @method static Builder|Freelance whereIdNo($value)
 * @method static Builder|Freelance whereIsAuth($value)
 * @method static Builder|Freelance whereUpdatedAt($value)
 * @method static Builder|Freelance whereUserId($value)
 */
class Freelance extends Model
{
    use HasFactory;
	
	protected $guarded = ['id'];
	
	protected $dates = [
		'created_at'
	];
	
	public function user()
	{
		return $this->belongsTo(User::class);
	}
	
}
